import request from '../utils/request';

//获取门店信息
export const getPosList = query => {
    return request({
        url: '/outletL/get',
        method: 'get',
        params: query
    });
};
//修改门店信息
export const updatePos = data => {
    return request({
        url: '/outletL/update',
        method: 'post',
        data: {data}
    });
};
//删除门店
export const delPos = data => {
    return request({
        url: '/outletL/del',
        method: 'post',
        data: data
    });
};
//增加门店
export const addPos = data => {
    return request({
        url: '/outletL/add',
        method: 'post',
        data: {data}
    });
};
//
// 获取各种状态的门店
export const getwaitPos = data => {
    return request({
        url: '/outletL/wait',
        method: 'post',
        data: data
    });
};
//获取一家门店
export const getone = data => {
    return request({
        url: '/outletL/getone',
        method: 'post',
        data: data
    });
};
//门店状态修改
export const changeState = data => {
    return request({
        url: '/outletL/upstate',
        method: 'post',
        data: data
    });
};
//图片上传
export const uoploadPos = data => {
    return request({
        url: '/outletL/uopload',
        method: 'post',
        data: data
    });
};
//将门店ID关联到门店管理员账户
export const link = data => {
    return request({
        url: '/outletL/link',
        method: 'post',
        data: data
    });
};
//获取该账号的关联门店
export const getadminPos = data => {
    return request({
        url: '/outletL/adminpos',
        method: 'post',
        data: data
    });
};
export const posSale = data => {
    return request({
        url: '/outletL/posSale',
        method: 'get',
        data: data
    });
};
export const posroom = data => {
    return request({
        url: '/outletL/posroom',
        method: 'get',
        data: data
    });
};


